<?php
/**
 * Specs
 * Created by Veyron
 * motto:现在的拼搏 为了更好的明天
 * day:  2020/2/9
 * Time: 14:33
 */

namespace app\common\business;

class Specs extends BusBase
{
    public $model = null;
    public function __construct()
    {
        $this->model = new \app\common\model\mysql\Specs();
    }

    /**
     * 获取正常的规格
     */
    public function getNormalSpecsAll(){
        $field = 'id,name';
        try {
            $res = $this->model->getNormalSpecsAll($field);
        }catch (\Exception $e){
            //记录日志
            return [];
        }
        $res = $res->toArray();
        return $res;
    }

}
